{include file="common/public/header"}
<div style="padding: 15px">
	<div class="layui-card">
  		<div class="layui-card-header">收货信息</div>
		  <div class="layui-card-body">
		  		<table class="layui-table">
					  <tbody>
					    <tr>
					      <td>用户昵称: {$orderInfo.user.nickname}</td>
					    </tr>
					    <tr>
					      <td>收货人: {$orderInfo.real_name}</td>
					    </tr>
					    <tr>
					      <td>联系电话: {$orderInfo.user_phone}</td>
					    </tr>
					    <tr>
					      <td>收货地址: {$orderInfo.user_address}</td>
					    </tr>
					  </tbody>
		  		</table>
		  </div>
	</div>

	<div class="layui-card">
  		<div class="layui-card-header">订单信息</div>
		  <div class="layui-card-body">
		  		<table class="layui-table" lay-skin="line">
					  <tbody>
					   
							{volist name="$orderInfo.cart_detail" id="goods"}
					      		{if $goods.cart_info.productInfo.attrInfo} 
					      		 <tr>
					      			<td>
										<img style="width: 50px;height: 50px;margin:0;cursor: pointer;"
			                                     src="{$goods.cart_info.productInfo.attrInfo.image}">
					      			</td>
					      			<td>
										{$goods.cart_info.productInfo.store_name}&nbsp;{$goods.cart_info.productInfo.attrInfo.suk}
					      			</td>
					      			<td>￥{$goods.cart_info.truePrice}×{$goods.cart_info.cart_num}</td>
			                      {else /}
			                      	<td>
										<img style="width: 50px;height: 50px;margin:0;cursor: pointer;"
			                                       src="{$goods.cart_info.productInfo.image}">
			                      	</td>
			                      	<td>
										{$goods.cart_info.productInfo.store_name}
			                      	</td>
			                      	<td>￥{$goods.cart_info.truePrice}×{$goods.cart_info.cart_num}</td>

					      		{/if}
				 			</tr>
					      {/volist}
							
					   
					    <tr>
					      <td>订单编号: {$orderInfo.order_id}</td>
					      <td style="color: #8BC34A;">订单状态:{if condition="$orderInfo['paid'] eq 0 && $orderInfo['status'] eq 0"}
                            未支付
                            {elseif condition="$orderInfo['paid'] eq 1 && $orderInfo['status'] eq 0 && $orderInfo['refund_status'] eq 0"/}
                            未发货
                            
                            {elseif condition="$orderInfo['paid'] eq 1  && $orderInfo['status'] eq 1 && $orderInfo['refund_status'] eq 0"/}
                            待收货
                            
                            {elseif condition="$orderInfo['paid'] eq 1 && $orderInfo['status'] eq 2 && $orderInfo['refund_status'] eq 0"/}
                            交易完成
                            {elseif condition="$orderInfo['paid'] eq 1 && $orderInfo['refund_status'] eq 1"/}
                            申请退款<b style="color:#f124c7">{$orderInfo.refund_reason_wap}</b>
                            {elseif condition="$orderInfo['paid'] eq 1 && $orderInfo['refund_status'] eq 2"/}
                            已退款
                            {elseif condition="$orderInfo['paid'] eq 1 && $orderInfo['refund_status'] eq 3"/}
                            拒绝退款
                            {/if}
                            </td>
							<td>
								{if $orderInfo.coupon_id} 
									优惠券： {$orderInfo.coupon.coupon_title}
								{/if}
							</td>
					    </tr>
					    {if $orderInfo['paid'] eq 1 && $orderInfo['refund_status'] eq 1 } 
					    	<tr>
								<td>退款备注说明：{$orderInfo['refund_reason_wap_explain']}</td>
								<td>
									{if $orderInfo['refund_reason_wap_img']}
										<div style="display: flex;align-items: center;">
										退款凭证图片：
											{volist name="$orderInfo['refund_reason_wap_img']" id="v"}
											<img src="{$v}"  onclick="img_preview(this)" style="margin-right: 5px;width: 75px;height: 75px;cursor: pointer;">
											{/volist}
										</div>
									{/if}
								</td>
								<td></td>
					    	</tr>

					    {/if}
					   	<tr>
							<td>商品总数: {$orderInfo.total_num}</td>
							<td>商品总价: ￥{$orderInfo.total_price}</td>
							<td></td>
					   	</tr>
					   	<tr>
							<td>实际支付: ￥{$orderInfo.pay_price} ({if $orderInfo.coupon_id} 优惠金额￥ {$orderInfo.coupon_price} {/if})</td>
	                        <td style="color: #f1a417">
								{if condition="$orderInfo['refund_price'] > 0"}
		                        退款金额: ￥{$orderInfo.refund_price}
		                        {/if}
	                        </td>
							<td>
							
							</td>
					   	</tr>
					   	<tr>
							<td>创建时间: {$orderInfo.add_time|date="Y/m/d H:i"}</td>
							<td>
								{notempty name="orderInfo.pay_time"}
								支付时间: {$orderInfo.pay_time|date="Y/m/d H:i"}
		                        {/notempty}
							</td>
							<td></td>
					   	</tr>
					   	<tr>
							<td>用户备注: {$orderInfo.mark?:'无'}</td>
					   	</tr>
					  </tbody>
		  		</table>
		  </div>
	</div>

	<div class="layui-card">
  		<div class="layui-card-header">物流信息</div>
		  <div class="layui-card-body">
		  		<table class="layui-table">
					  <tbody>
					    <tr>
					      <td>快递公司: {$orderInfo.delivery_name}</td>
					    </tr>
					    <tr>
					      <td>快递单号: {$orderInfo.delivery_id}</td>
					    </tr>
					  </tbody>
		  		</table>
		  </div>
	</div>
</div>


{include file="common/public/footer" /}